import {Person, Student} from './oop'
import {ModuleAdapter} from './oop2'

import {ArrayList} from './generic'

const p = new Person('zidu', 27)
console.log(p.introduce())
console.log(Person.isHandsome())

const s = new Student('fusu', 20, 18)
console.log(s.introduce())

class RegisterModule extends ModuleAdapter {
  doInit(): void {
    console.log('register module init...')
  }
  doBoot(): void {
    console.log('register module boot...')
  }
}

const rm = new RegisterModule()
rm.init()
rm.boot()

const list = new ArrayList<string>(5)
list.add('aaa')
list.add('bbb')
list.add('ccc')
list.add('ddd')
list.iterate()
console.log(list.size())

